package com.xms.schema.service.entity;

import com.xms.datacore.service.IFinderService;
import com.xms.schema.entity.Entity;

import java.util.Collection;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IEntityFinder
 * </p>
 *
 * @author migo
 * @since 2021/9/2
 */
public interface IEntityFinderService extends IFinderService<Entity> {

    Entity getByName(String name);

    List<Entity> getByNames(Collection<String> name);

    boolean existsName(String name);

    boolean existsName(String name, UUID existId);

    List<Entity> getRelatedEntities(UUID entityid, int relationShipType, int cascadeLinkMask);

}
